//
//  Stack.h
//  iOSAlgorithmOC
//
//  Created by Mr.Wei on 2021/3/15.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Stack<__covariant ObjectType> : NSObject

- (BOOL)isEmpty;
- (NSInteger)count;
- (void)push:(id)element;
- (id)pop;
- (id)top;

@end

NS_ASSUME_NONNULL_END
